﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Studio77.GuessTheWordsForWP7.Model;

namespace Studio77.GuessTheWordsForWP7.Views
{
    public partial class StageItemView : UserControl
    {
        public StageItemView()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //进入具体的关卡
            StageInfoViewModel model = this.DataContext as StageInfoViewModel;

            if (model != null)
            {
                StagePage.currentStagePage.NavigationService.Navigate(new Uri("/GamePage.xaml?stageIndex=" + model.Index.ToString(), UriKind.Relative));
            }
        }
    }
}
